package model;

import java.time.LocalDateTime;

//多个活动可以同时叠加
public class GoodsSale {
    private Long g_sale_id;
    private Long g_id;
    private Integer g_sale;
    private Integer g_vip_sale;
    private Integer g_bonus;
    private LocalDateTime g_sale_open;
    private LocalDateTime g_sale_close;
    private String g_sale_descript;

    public GoodsSale(Long g_sale_id, Long g_id, Integer g_sale, Integer g_vip_sale, Integer g_bonus, LocalDateTime g_sale_open, LocalDateTime g_sale_close, String g_sale_descript) {
        this.g_sale_id = g_sale_id;
        this.g_id = g_id;
        this.g_sale = g_sale;
        this.g_vip_sale = g_vip_sale;
        this.g_bonus = g_bonus;
        this.g_sale_open = g_sale_open;
        this.g_sale_close = g_sale_close;
        this.g_sale_descript = g_sale_descript;
    }

    public GoodsSale(Object[] rowRec) {
        this.g_sale_id = (Long)rowRec[0];
        this.g_id = (Long)rowRec[1];
        this.g_sale = (Integer)rowRec[2];
        this.g_vip_sale = (Integer)rowRec[3];
        this.g_bonus = (Integer)rowRec[4];
        this.g_sale_open = (LocalDateTime)rowRec[5];
        this.g_sale_close = (LocalDateTime)rowRec[6];
        this.g_sale_descript = (String)rowRec[7];
    }

    public GoodsSale() {}

    @Override
    public String toString() {
        return "GoodsSale{" +
                "g_sale_id=" + g_sale_id +
                ", g_id=" + g_id +
                ", g_sale=" + g_sale +
                ", g_vip_sale=" + g_vip_sale +
                ", g_bonus=" + g_bonus +
                ", g_sale_open=" + g_sale_open +
                ", g_sale_close=" + g_sale_close +
                ", g_sale_descript='" + g_sale_descript + '\'' +
                '}';
    }

    public Long getG_sale_id() {
        return g_sale_id;
    }

    public void setG_sale_id(Long g_sale_id) {
        this.g_sale_id = g_sale_id;
    }

    public Long getG_id() {
        return g_id;
    }

    public void setG_id(Long g_id) {
        this.g_id = g_id;
    }

    public Integer getG_sale() {
        return g_sale;
    }

    public void setG_sale(Integer g_sale) {
        this.g_sale = g_sale;
    }

    public Integer getG_vip_sale() {
        return g_vip_sale;
    }

    public void setG_vip_sale(Integer g_vip_sale) {
        this.g_vip_sale = g_vip_sale;
    }

    public Integer getG_bonus() {
        return g_bonus;
    }

    public void setG_bonus(Integer g_bonus) {
        this.g_bonus = g_bonus;
    }

    public LocalDateTime getG_sale_open() {
        return g_sale_open;
    }

    public void setG_sale_open(LocalDateTime g_sale_open) {
        this.g_sale_open = g_sale_open;
    }

    public LocalDateTime getG_sale_close() {
        return g_sale_close;
    }

    public void setG_sale_close(LocalDateTime g_sale_close) {
        this.g_sale_close = g_sale_close;
    }

    public String getG_sale_descript() {
        return g_sale_descript;
    }

    public void setG_sale_descript(String g_sale_descript) {
        this.g_sale_descript = g_sale_descript;
    }
}
